function typefun(arr = [], oldarr = [], pagesno) {
  if (arr.length > 0) {
    oldarr.push(arr);
    pagesno++;
  }

  return {
    list: oldarr,
    pagesno: pagesno,
  };
}

export { typefun };
